function makeSalary(base) {
  return function (performance) {
    return base + performance
  }
}

const s5 = 1000;
const s6 = 2000;

let A, B, C;

const makeSalaryS5 = makeSalary(s5)
A = makeSalaryS5(3000)
console.log(A);
